<?php
$dashboard = array(
        array('url' => '/admin/tour'             , 'icon-name' => 'icon-01.jpg'            , 'label' => 'Tour'),
        array('url' => '/admin/tour-style'       , 'icon-name' => 'icon-02.jpg'            , 'label' => 'Tour trip in style'),
        array('url' => '/admin/tour-category'    , 'icon-name' => 'icon-03.jpg'            , 'label' => 'Tour category'),
        array('url' => '/admin/cruise'           , 'icon-name' => 'icon-04.jpg'            , 'label' => 'Cruise'),
        array('url' => '/admin/cruise-category'  , 'icon-name' => 'icon-05.jpg'            , 'label' => 'Cruise category'),
        array('url' => '/admin/cruise-type'      , 'icon-name' => 'icon-06.jpg'            , 'label' => 'Cruise type'),
        array('url' => '/admin/hotel'            , 'icon-name' => 'icon-07.jpg'            , 'label' => 'Hotel'),
        array('url' => '/admin/hotel-type'       , 'icon-name' => 'icon-14.jpg'            , 'label' => 'Hotel type'),
        array('url' => '/admin/enquire'          , 'icon-name' => 'icon-13.jpg'            , 'label' => 'Enquire'),
        array('url' => '/admin/contact'          , 'icon-name' => 'icon-10.jpg'            , 'label' => 'Contact'),
        array('url' => '/admin/customer'         , 'icon-name' => 'icon-11.jpg'            , 'label' => 'Customer'),
        array('url' => '/admin/order'            , 'icon-name' => 'icon-12.jpg'            , 'label' => 'Order'),
        array('url' => '/admin/event'            , 'icon-name' => 'icon-09.jpg'            , 'label' => 'MICE'),
        array('url' => '/admin/visa'             , 'icon-name' => 'icon-25.png'            , 'label' => 'Visa'),
        array('url' => '/admin/faqs/list-faqs'   , 'icon-name' => 'icon-15.jpg'            , 'label' => 'FAQS'),
        array('url' => '/admin/article'          , 'icon-name' => 'icon-08.jpg'            , 'label' => 'Article'),
        array('url' => '/admin/country'          , 'icon-name' => 'icon-17.jpg'            , 'label' => 'Country'),
        array('url' => '/admin/region'           , 'icon-name' => 'icon-18.jpg'            , 'label' => 'Region'),
        array('url' => '/admin/vct-info'         , 'icon-name' => 'icon-21.jpg'            , 'label' => 'Vct info'),
        array('url' => '/admin/vct-setting'      , 'icon-name' => 'icon-22.jpg'            , 'label' => 'Vct setting'),
        array('url' => '/admin/support'          , 'icon-name' => 'icon-23.jpg'            , 'label' => 'Customer support'),
        array('url' => '/admin/photo-management/gallery'          , 'icon-name' => 'icon-24.jpg'            , 'label' => 'Gallery'),
        array('url' => '/admin/user'             , 'icon-name' => 'icon-19.jpg'            , 'label' => 'User'),
        array('url' => '/admin/user-group'       , 'icon-name' => 'icon-20.jpg'            , 'label' => 'User group')
        );
?>

<div class="mainpage">
    <div class="row-fluid">
        <div class="span3">
            <div id="datepicker">
            </div>
            <div class="statistic">
                <ul>
                    <li>Enquire: <b><?= $this->countEnquire; ?></b></li>
                    <li>New enquire: <b><?php echo $this->countEnquireNew; ?></b></li>
                    <li>Contact: <b><?= $this->countContact; ?></b></li>
                    <li>New Contact: <b><?php echo $this->countContactNew; ?></b></li>
                </ul>
                <ul>
                    <li>Tour: <b><?= $this->countTour; ?></b></li>
                    <li>Tour public: <b><?= $this->countTourPublic; ?></b></li>
                    <li>Tour category: <b><?= $this->countTourCategory; ?></b></li>
                    <li>Trip in style: <b><?= $this->countTourStyle; ?></b></li>
                </ul>
                <ul>
                    <li>Cruise: <b><?= $this->countCruise; ?></b></li>
                    <li>Cruise public: <b><?= $this->countCruisePublic; ?></b></li>
                </ul>
                <ul>
                    <li>Hotel & resort: <b><?= $this->countHotel; ?></b></li>
                    <li>Hotel public: <b><?= $this->countHotelPublic; ?></b></li>
                </ul>
                <ul>
                    <li>Customer: <b><?= $this->countCustomer; ?></b></li>
                    <li>Order: <b><?= $this->countOrder; ?></b></li>
                </ul>
            </div>
        </div>
        <div class="span9">
            <?php foreach($dashboard as $k => $v): ?>
            <div class="dashboard-item">
                <a href="<?= $v['url']; ?>">
                   <img src="/static/admin/images/icon-dashboard/<?= $v['icon-name'] ?>" class="dashboard-icon" />
                    <span><?= $v['label'] ?></span>
                </a>
            </div>
            <?php endforeach; ?>
        </div>
        <div class="clear"></div>
    </div>
</div>

<script>
$('#datepicker').datepicker();
</script>